class VotesController < ApplicationController

  def create
    @idea = Idea.find(params[:idea_id])  
    @vote = @idea.votes.create() 
    redirect_to idea_path(@idea) 
  end

  def new
  end

end
